package com.fang.ct.common.constant;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;

public class ConfigConstant {

    private  static Map<String,String> valueMep=new HashMap<String, String>();

    static {

        //国际化
        ResourceBundle ct = ResourceBundle.getBundle("ct");

        Enumeration<String> enums = ct.getKeys();
        while (enums.hasMoreElements()){
            String key = enums.nextElement();
            String value = ct.getString(key);
            valueMep.put(key,value);
        }

    }
    public static String getVal(String key){
        return  valueMep.get(key);
    }

    public static void main(String[] args) {
        System.out.println(ConfigConstant.getVal("ct.cf.caller"));
    }
}
